// 商品模块
const Router = require("koa-router");

const { upload } = require("../controller/goods.controller");
const { authenticate, hadAdminPermission } = require("../middleware/auth.middlerware");

const router = new Router({ prefix: "/goods" });

router.post("/upload", authenticate, hadAdminPermission, upload);

module.exports = router;
